﻿using System.ComponentModel.DataAnnotations;

namespace Competition.App.Web.Models.ProductViewModels
{
    public class ProductViewModel
    {
        public int Id { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        [Required(ErrorMessage = "必填", AllowEmptyStrings = false)]
        [StringLength(50, MinimumLength = 1, ErrorMessage = "{2}到{1}个字符")]
        [Display(Name = "项目名称")]
        public string Title { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 封面
        /// </summary>
        public string Cover { get; set; }

        public string AddTime { get; set; }

        [Required(ErrorMessage = "必填", AllowEmptyStrings = false)]
        [StringLength(50, MinimumLength = 1, ErrorMessage = "{2}到{1}个字符")]
        [Display(Name = "姓名")]
        public string FullName { get; set; }
        [Required(ErrorMessage = "必填", AllowEmptyStrings = false)]
        [StringLength(50, MinimumLength = 1, ErrorMessage = "{2}到{1}个字符")]
        [Display(Name = "身份证号码")]
        public string Identity { get; set; }
        [Required(ErrorMessage = "必填", AllowEmptyStrings = false)]
        [StringLength(50, MinimumLength = 1, ErrorMessage = "{2}到{1}个字符")]
        [Display(Name = "手机号")]
        public string Phone { get; set; }

        public string Annex { get; set; }
        [Display(Name = "报名类型")]
        public int ClassId { get; set; }

        public string Html { get; set; }
    }
}